package com.example.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@SpringBootApplication
//@EnableConfigurationProperties({ConfigBean.class})
public class DemoApplication {

    @RequestMapping(value = "/ttt")
    public String index() {
        String abc = Global.getConfig("server.port");
        return "你好Hello Spring Boot" + "---port:" + abc;
    }

    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);
    }

}
